<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
	<script language="javascript">
function go() {
	if(event.keyCode==13){
     logon();
   }
}

function logon() {
   var form = document.forms["form1"]
	if (document.form1.username.value=="") {
    	alert("请输入用户名!");
    	document.form1.username.focus();
    	return false;
  	}
  	if (document.form1.password.value=="") {
    	alert("请输入密码!");
    	document.form1.password.focus();
    	return false;
  	}


	
	
  	document.form1.submit();
}

</script>


	<head>
		<base href="<%=basePath%>">

		<title>新生入学报到系统</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">

	</head>

	<body>
	
		<form name="form1" action="studentlogin!login.action" method="post">
			<table>

				<tr>
					<td>
						用户名：
					</td>
					<td>
						<s:textfield name="username"/>
						<s:fielderror>
							
						</s:fielderror>
					</td>
				</tr>
				<tr>
					<td>
						密 码：
					</td>
					<td>
						<s:password name="password" />
					</td>
				</tr>
				<tr>
					<td>
					<input type="button" onClick="logon()" value="登录"/>
						
					</td>
					
					<td>
						<a href="studentreport/active.jsp">激活帐号</a>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>
